// out: ../css/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;

}

a {
    text-decoration: none;
}

// 声明网页所用的变量颜色
@bgcolor-one: #623c79;
@bgcolor-two: #af6ec3;
@bgcolor-three: #ebc7f8;
@bgcolor-four: #fef5ff;
@bgcolor-five: #331f49;
@txtcolor-one: #fff;
@txtcolor-two: #797979;

@rootSize: 19.2vw;

// 网页背景色
body {
    background-color: @bgcolor-two;
}

.notes {
    display: flex;

    .sidebar {
        display: flex;
        flex-direction: column;
        margin-left: 1vw;
        width: 15vw;

        // 按钮
        .btn_add {
            margin-top: 1vw;
            padding: 1vw;
            width: 100%;
            // height: 3vw;
            background-color: @bgcolor-one;
            border: none;
            border-radius: (10 / @rootSize);
            font-size: (20 / @rootSize);
            color: @txtcolor-one;
            cursor: pointer;
        }

        .list ul {
            margin-top: 2vw;

            li {
                display: flex;
                flex-direction: column;
                margin-top: 1vw;
                background-color: @bgcolor-three;
                border-radius: (7 /@rootSize);
                cursor: pointer;
                color: @txtcolor-two;

                .list_header {
                    flex: 1;
                    padding: (12 /@rootSize);
                    border-bottom: (2 /@rootSize) dashed @bgcolor-two;
                    font-size: (18 /@rootSize);
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;

                }

                .list_body {
                    padding: (8 /@rootSize);
                    font-size: (16 /@rootSize);

                }

                .list_updated {
                    display: flex;
                    padding: (9 /@rootSize);
                    justify-content: flex-end;
                    font-size: (12 /@rootSize);
                    color: @txtcolor-two;
                }

                &.selected {
                    border: 2px solid @bgcolor-three;
                    color: @txtcolor-one;
                    background-color: @bgcolor-five;
                }
            }
        }
    }

    .borderBottom {
        padding: (12 /@rootSize);
        border-bottom: (2 /@rootSize) dashed @bgcolor-three;
        font-size: (18 /@rootSize);
    }



    .preview {
        display: flex;
        flex: 1;
        padding: 3vw 5vw 0 5vw;
        flex-direction: column;

        .title {
            font-size: (48 /@rootSize);
            font-weight: normal;
            background-color: @bgcolor-four;
            color: @txtcolor-two;
            border: (5 / @rootSize) solid @bgcolor-one;
        }

        .body {
            margin-top: 3vw;
            padding: (16 /@rootSize);
            height: (700 /@rootSize);
            resize: none;
            font-size: (36 /@rootSize);
            line-height: 1.5;
            border: (5 / @rootSize) solid @bgcolor-one;
            color: @txtcolor-two;
        }
    }
}